package AST;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

public class Exprlist {
	private List<Expr> exprList = new ArrayList<Expr>();

	public List<Expr> getExprList() {
		return exprList;
	}

	public void setExprList(List<Expr> exprList) {
		this.exprList = exprList;
	}

	public Exprlist() {
		print();
	}

	public void print() {
		System.out.println("ExprList");
	}

	public void addExprList(Expr e) {
		this.exprList.add(e);
	}

	public void genC(PW pw) {
		Iterator<Expr> itExpr = exprList.iterator();

		while (itExpr.hasNext())
			itExpr.next().genC(pw);

	}

}
